/**
 * 
 */
package com.fang.www.wg.util;

import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @author 王刚
 *
 */
public class UrlCollection {
	private static  ConcurrentLinkedQueue<String> contain;
	public UrlCollection() {
		super();
		contain = new ConcurrentLinkedQueue<String>();
	}
	public void addCollects(String url){
		contain.add(url);
	}
	public int getSize(){
		return contain.size();
	}
	public void ifUrlExist(String url){
		contain.contains(url);
	}
	public String getUrl(){
		return contain.poll();
	}
	public boolean isEmpty(){
		return contain.isEmpty();
	}
	
	
}
